package com.xinou.daily_report.service;

import com.xinou.common.base.config.ApiResponse;
import com.xinou.daily_report.PO.daily.DailyFlowerAddPO;
import com.xinou.daily_report.PO.daily.DailyFlowerListPO;
import com.xinou.daily_report.VO.DailyFlowerInfoVO;
import com.xinou.daily_report.entity.SysFlower;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.annotations.Api;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-06-29
 */
public interface SysFlowerService extends IService<SysFlower> {
    /**
     * 给日报送花
     * @param po
     * @return
     */
    ApiResponse<String> giveFlower(DailyFlowerAddPO po);

    /**
     * 能否给日报送花
     * @return
     */
    ApiResponse<Boolean> canGiveFlower();

    /**
     * 获取送花列表
     * @param po
     * @return
     */
    ApiResponse<DailyFlowerInfoVO> flowerList(DailyFlowerListPO po);
}
